<?php

namespace SisesporteAdmin\Form;

use Zend\Form\Form;
use \SisesporteAdmin\Filter\EsqueciSenhaFilter;

class EsqueciSenhaForm extends Form {
    
    public function __construct($name = null) {
        parent::__construct('autenticacao');
        
        $this->setAttribute('method', 'post');       
        $this->setInputFilter(new EsqueciSenhaFilter());
        
        $this->add(array(
           'name' => 'noEmail',
            'options' => array(
                'type' => 'email',
                'label' => 'E-mail*:'
            ),
            'attributes' => array(
                'placeholder' => 'Entre com seu E-mail',
                'maxlength' => '100'
            )
        ));
        $this->add(array(
            'name' => 'dtNascimento',
            'options' => array(
                'type' => 'text',
                'label' => 'Data de Nascimento*:'
            ),
            'attributes' => array(
                'id' => 'dtNascimento',
                'class' => 'input-medium'
                
            )
        ));
        
        $this->add(array(
           'name' => 'submit',
            'type' => 'Zend\Form\Element\Submit',
            'attributes' => array(
                'value' => 'Entrar',
                'class' => 'btn btn-success'
            )
        ));
    }
}
